/*
 * Copyright 2009 (c) Patrick Pietens
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */
package indigo.sound.errors
{	import indigo.logger.error;
	/**
	 * The SoundErrors class list all possible Errors thrown by the Indigo Library. 
	 * 
	 */
	public class SoundError extends Error
	{
		/**
		 * Error message which is thrown when a argument of a function is not valid
		 */
		public static const ARGUMENT_EXCEPTION:String = "Argument type is not valid";
		/**
		 * Error message which is thrown when a sound already exists
		 */
		public static const SOUND_ALREADY_EXISTS:String = "SoundItem already registered";
		/**
		 * Error message which is thrown when a sound was not found
		 */		
		public static const SOUND_NOT_FOUND:String = "Sound not found";
		/**
		 * Error message which is thrown when a sound is found but is closed
		 */		
		public static const SOUND_IS_CLOSED:String = "Sound cannot be played. Already closed.";

		
		/**
		 * Constructor
		 * 
		 */
		public function SoundError( message:*, id:* = 0 )
		{
			super( message, id );				
			error( this );
		}		
	}
}